package com.iims.flowable.flow.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iims.common.annotation.Excel;
import com.iims.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 流程表单对象 cmis_flow_form
 *
 * @author fanpei
 * @date 2021-03-30
 */
@ApiModel("表单对象")
@Data
@NoArgsConstructor
@TableName("cmis_flow_form")
public class FlowableForm extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表单Key", required = true)
    @NotBlank(message = "表单Key不能为空")
    @Size(min = 0, max = 50, message = "表单名称长度不能超过50个字符")
    @Excel(name = "表单Key")
    @TableId(type = IdType.INPUT)
    private String formKey;


    /**
     * 表单名称
     */
    @ApiModelProperty(value = "表单名称", required = true)
    @NotBlank(message = "表单名称不能为空")
    @Size(min = 0, max = 50, message = "表单名称长度不能超过50个字符")
    @Excel(name = "表单名称")
    private String formName;


    /**
     * 表单内容
     */
    @ApiModelProperty(value = "表单内容,json", required = true)
    @NotBlank(message = "表单内容不能为空")
    @Excel(name = "表单内容")
    private String formJson;
}
